package com.third.bank.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.third.bank.entity.Balance;
import com.third.bank.request.AddBalanceRequest;
import com.third.bank.request.ReduceBalanceRequest;
import com.third.bank.util.BaseResponse;

import java.util.Map;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 余额service
 */
public interface BalanceService extends IService<Balance> {
    void updateBatchUserBalance(List<Balance> balanceList);

    List<Balance> getDailyUserList(LocalDateTime now);

    Balance searchBalancebyID(Long id);

    int updateBalancebyID(Long id, Balance reuserBalance);

    BaseResponse addBalance(AddBalanceRequest addBalanceRequest);

    BaseResponse reduce(ReduceBalanceRequest reduceBalanceRequest);

    BaseResponse getBalanceByUserId(Long userId);
}
